RS422 to TTL Power Supply Converter Board

  • RM25.00

  • Product Code: RS422 TO TTL
  • Availability: In Stock

RS422 interface, two-way communication. B Y Z A ultra far transmission 1000 meters. The module has ESD 15KV protection. Onboard to increase the limit of 10 ohms current limiting current protection. Module with TVS diode. Anti lightning, peak voltage. The module has 120-ohm termination resistors, which can effectively reduce the interference of long-range communication. Have the power indicator light and the data receiving and sending indicator light. Panoramic view of state data. Module TTL side using 5V DC power supply TXD RXD compatible with 5V logic signal.

The module uses the original imported MAX490 chips, stability, and communication speed is far more than domestic products, up to 2.5MBPS.

 

Features:

  1. RS422 interface, two-way communication. B Y Z A ultra far transmission 1000 meters
  2. The module has ESD 15KV protection.
  3. Onboard to increase the limit of 10 ohms current limiting current protection.
  4. Module with TVS diode. Anti lightning, peak voltage.
  5. The module has 120-ohm termination resistors, which can effectively reduce the interference of long-range communication.
  6. Have the power indicator light and the data receiving and sending indicator light. Panoramic view of state data.
  7. Module TTL side using 5V DC power supply TXD RXD compatible with 5V logic signal.
  8. The module uses the original imported MAX490 chips, stability and communication speed is far more than domestic products, up to 2.5MBPS.

 

Package Includes:

1 x RS422 to TTL Power Supply Converter Board

 

Interfacing RS-422 TO TTL MAX490 Convertor with Arduino

                                                                        RS-422 TO TTL MAX490 Convertor Arduino

  • Arduino RX pin to pin 2 of the MAX490.
  • Arduino TX pin to pin 3 of the MAX490.
  • Button for turning on the LED to Arduino pin 4.
  • Button for turning off the LED to Arduino pin 5.

 

Add an LED to the Slave 

  • LED to Arduino pin 4.

This setup allows you to control the LED on pin 4 of the Slave Arduino based on commands received from the Master Arduino through RS-422 communication.

max490 rs422 arduino

 

The connection between the two modules should be made with two pairs of twisted cables following the connections.

  • Y” output of one module to the “A” input of the other module.
  • Z” output of one module to the “B” input of the other module.
  • A” output of one module to the “Y” input of the other module.
  • B” output of one module to the “Z” input of the other module.

The Connection between the modules should be YAZBAY, and BZ.

 

Source Code

Master Arduino Code

 #include <SoftwareSerial.h>

SoftwareSerial  rs422(2, 3); // RX, TX


#define btn_on 4

#define btn_off 5


// PROTOCOL DEFINITION

#define TURN_ON "TURN_ON"

#define TURN_OFF "TURN_OFF"


void setup() {

   rs422.begin(9600);  // Initialize software serial communication

  pinMode(btn_on, INPUT_PULLUP);

  pinMode(btn_off, INPUT_PULLUP);

}


void loop() {

  if (!digitalRead(btn_on)) {

    while (!digitalRead(btn_on)) {

      delay(20);  // Debounce button press

    }

    // Send the protocol to turn on the LED

    rs422.print(TURN_ON);

  }

  else if (!digitalRead(btn_off)) {

    while (!digitalRead(btn_off)) {

      delay(20);  // Debounce button press

    }

    // Send the protocol to turn off the LED

     rs422.print(TURN_OFF);

  }

}

 

Slave Arduino Code:

#include <SoftwareSerial.h>

#include <string.h>

SoftwareSerial  rs422(2, 3); // RX, TX


#define led 4


// PROTOCOL DEFINITION

#define TURN_ON "TURN_ON"

#define TURN_OFF "TURN_OFF"


String protocol = "";


void setup() {

   rs422.begin(9600);

  pinMode(led, OUTPUT);

  Serial.begin(9600);

}


void loop() {

  if (rs422.available()) {

    protocol += char(rs422.read());

    if (protocol == TURN_ON) {

      digitalWrite(led, HIGH);

      // Clear the protocol

      protocol = "";

    }

    if (protocol == TURN_OFF) {

      digitalWrite(led, LOW);

      // Clear the protocol

      protocol = "";

    }

  }

}

Write a review

Note: HTML is not translated!
    Bad           Good